From 84c35a15ae24ab5604f059d9ea5b486529817893 Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Mon, 16 Aug 2004 09:38:19 +0000 Subject: [PATCH] bitkeeper revision 1.1159.1.69 (4120808b8wy9kCiirenw5U48ZbJlFA) Add default value for cpu_weight. --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index dedbcb9537..8b47598c93 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -499,7 +499,7 @@ class XendDomainInfo: try: self.name = sxp.child_value(config, 'name') self.check_name(self.name) - self.cpu_weight = float(sxp.child_value(config, 'cpu_weight')) + self.cpu_weight = float(sxp.child_value(config, 'cpu_weight', '1')) if self.restore and self.dom: xc.domain_setname(self.dom, self.name) self.memory = int(sxp.child_value(config, 'memory')) -- 2.30.2